<?php
//自定义路由
use think\facade\Route;

/** 暗黑不朽路由配置 **/
// api子域名路由指定
Route::domain('xm.api.v6sy.com',function () {
    Route::group('genshin', function () {
        Route::post('getTeamPosition', 'api.GenshinTeam/getTeamPosition');//获取队伍配置
        Route::post('getRelicsText', 'api.GenshinTeam/getRelicsText');//获取词条
        Route::post('getRoleRelics', 'api.GenshinTeam/getRoleRelics');//获取角色下的圣遗物
        Route::post('getRoleWeapon', 'api.GenshinTeam/getRoleWeapon');//获取角色下的推荐武器
        Route::post('addTeam', 'api.GenshinTeam/addTeam');//添加团队
        Route::post('editTeam', 'api.GenshinTeam/editTeam');//编辑团队
        Route::post('deleteTeam', 'api.GenshinTeam/deleteTeam');//删除团队
        Route::post('myList', 'api.GenshinTeam/myList');//我的发布
        Route::post('saveUserInfo', 'api.GenshinTeam/saveUserInfo');//存储用户信息
    })->allowCrossDomain();

});